<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\WorkerMoney
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property int $worker_id 技师师傅ID
 * @property string $pre_money 变更前余额
 * @property string $money 变更金额
 * @property string $after_money 变更后余额
 * @property string|null $remark 变更备注
 * @property int $type 变更类型:0=后台修改,1=订单金额,2=提现金额
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|WorkerMoney newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|WorkerMoney newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|WorkerMoney query()
 * @method static \Illuminate\Database\Eloquent\Builder|WorkerMoney whereAfterMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkerMoney whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkerMoney whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkerMoney whereMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkerMoney wherePreMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkerMoney whereRemark($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkerMoney whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkerMoney whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkerMoney whereUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WorkerMoney whereWorkerId($value)
 * @mixin \Eloquent
 */
class WorkerMoney extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'worker_moneys';


    protected $fillable = [
        'type',
        'user_id',
        'worker_id',
        'pre_money',
        'money',
        'after_money',
        'remark',
    ];
}
